package com.lauroc.dept.service.impl;

import com.lauroc.dept.domain.Employee;
import com.lauroc.dept.mapper.EmployeeMapper;
import com.lauroc.dept.service.IEmployeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EmployeeServiceImpl implements IEmployeeService {

    @Autowired
    private EmployeeMapper mapper;

    @Override
    public List<Employee> findManagers() {
        return mapper.findMangers();
    }

    @Override
    public List<Employee> getAll() {
        return mapper.selectAll();
    }


}
